package hspedu.learn.javabase.extendsImporve;

public class StuTest {
    public static void main(String[] args) {
        Pupil pupil = new Pupil();
        System.out.println("小朋友的名称："+pupil.getFriendName());
        //public protected 默认 可以直接赋值
        System.out.println(pupil.name = "Jack");
        System.out.println(pupil.sex = "Boy");
        System.out.println(pupil.address = "上海");
        pupil.setFriendName("Jenny");
        System.out.println(pupil.getFriendName());
    }
}
